package com.sg.business.model.workevent;

import com.mobnut.db.model.IContext;
import com.sg.business.model.Work;
import com.sg.business.model.WorkEventNoticeRule;

public class UpdateWorkEvent extends RuleBasedWorkEvent {

	private Work updateBefore;

	public UpdateWorkEvent(Work work, Work updateBefore, String eventTypeId,
			IContext context) {
		super(work, context);
		setRule(WorkEventNoticeRule.makeWorkEventNoticeRule(eventTypeId));
		this.updateBefore = updateBefore;
		setParameter("updateBefore", updateBefore);
	}

	public Work getWorkUpdateBefore() {
		return updateBefore;
	}

}
